<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.ac.cintcm.dataconverge.util.Constants,cn.ac.cintcm.dataconverge.researcher.domain.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List keyList = (List)request.getAttribute("keySubject");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<TITLE>添加单位</TITLE>
 	<link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
	<SCRIPT type="text/javascript">
     function check(){
     	var fm=document.forms[0];
     if(fm.name.value==""){
	     alert("请填写单位名称！");
	     fm.name.focus();
	     return false;
     }
     if(fm.address.value==""){
	     alert("请填写单位地址！");
	     fm.address.focus();
	     return false;
     }
     if(fm.phone.value==""){
	     alert("请填写单位联系电话！");
	     fm.phone.focus();
	     return false;
     }
     return true;
     }
	</SCRIPT>
</head>
<body  class="idt_body" scroll="yes">
<form method="post" action="organization.htm?action=addOrganization&flag=add" onSubmit="return check();">
 <table cellpadding="0" cellspacing="0" width="100%" height="100%" id="Table8">
        <tr>
            <td valign="top" height="100%">
                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="Table11">
                    <tr>
                        <td valign="top" >
                            <!------------------ 标题栏 ------------------>
                            <!--- 标题 ---->
                            <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <td class="idt_tle_i">
                                        <img id="imgForm6" src="<%=basePath%>index/Themes/com/idt_tle_o.gif"></td>
                                    <td class="idt_tle_f1">
                                        添加单位</td>
                                </tr>
                            </table>
                            <!--- 内容 --->
                            <div id="tdForm">
                                <table border="0" cellpadding="0" cellspacing="1" width="100%" class="idt_fim_mg">
                                    <tr>
                                        <td class="fim_l" width="15%">
                                           单位名称</td>
                                        <td class="fim_r" width="35%">
                                        <input name="name" style="width:95%" type="text" class="com_textbox"  maxlength="128"><font color="red">*</font>
                                        <td class="fim_l" width="15%">
                                           单位地址</td>
                                        <td class="fim_r" width="35%">
                                        	<input name="address" style="width:95%" class="com_textbox" type="text" maxlength="128"><font color="red">*</font>
                                          </td>
                                    </tr>
                                    <tr>
                                        <td class="fim_l">
                                           联系电话</td>
                                        <td class="fim_r">
                                        <input name="phone" style="width:95%" class="com_textbox" type="text" maxlength="20"><font color="red">*</font>
                                            </td>
                                        <td class="fim_l">
                                            传真</td>
                                        <td class="fim_r">
                                        <input name="fax" style="width:95%" class="com_textbox" type="text" size="20">
                                          </td>
                                    </tr>
                                    <tr>
                                        <td class="fim_l">
                                           邮政编码</td>
                                        <td class="fim_r">
                                        <input name="postNo" style="width:95%" class="com_textbox" type="text" >
                                            </td>
                                        <td class="fim_l">
                                            网址</td>
                                        <td class="fim_r">
                                            <input class="com_textbox" style="width:95%" name="website" type="text" ></td>
                                    </tr>
                                     <!--  tr>
                                        <td class="fim_l">
                                           重点学科</td>
                                        <td class="fim_r" colspan="3">
                                         <select id="keySubject" name="keySubject" style="width:50%" size=3 multiple> 
                                         <%
							               for(int k = 0;k<keyList.size();k++){
							            	   SystemDict dict = (SystemDict)keyList.get(k);
							            	   out.println("<option value="+dict.getId()); 
							            	   out.println(">");
							            	   out.println(dict.getName());
							            	   out.println("</option>");
							               }
							             %>
                                         </select>
                                        </td>
                                    </tr-->
                                </table>
                                <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
                                    <tr>
                                        <td align="right">
                                            <input  class="com_btn2" id="Button1" name="save" type="submit" value="保存">
                                            <input type="button" value="取消" name="B4" class="com_btn2" id="Button2" onclick="javascript:window.close();">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                </table></form>
  </body>
</html>
